#include"table_dish.hpp"
#include"table_order.hpp"

int main(){
#ifdef a
  TableDish*  pdish = new TableDish();
  Json::Value dish;
  dish["name"] = "猪肉炖粉条";
  dish["price"] = 20;
  dish["info"] = "正宗野生猪肉";
  //pdish->DishUpdate(1,dish);
  Json::Value ret;
  pdish->DishGetOne(2,&ret);
  cout << ret << endl;
  Json::StyledWriter writer;
  cout << writer.write(ret) << endl;
  delete pdish;

#endif

  TableOrder* porder = new TableOrder();
  Json::Value order;
  int arr[] = {1,2};
  cout << arr << endl;
  order["dishes"].append(1);
  order["dishes"].append(2);
  cout << order["dishes"] << endl;
  cout << order["dishes"].type() << endl;
  porder->OrderInsert(order);
  delete porder;
  return 0;
}
